﻿using PMS.Web.Framework.Models;
using PMS.Web.Framework.Mvc.ModelBinding;
using PMS.Web.Models.Stores;
using System.Collections.Generic;
using System.ComponentModel;

namespace PMS.Web.Models.Customers
{
    public class CustomerSearchModel : BaseSearchModel, IAclSupportedModel
    {
        #region Ctor

        public CustomerSearchModel()
        {
            SelectedCustomerRoleIds = new List<int>();
            AvailableCustomerRoles = new List<XMSelectListItem>();
            SelectedStoreIds = new List<int>();
            AvailableStores = new List<StoreSelectModel>();
        }

        #endregion

        #region Properties

        [DisplayName("用户角色")]
        public IList<int> SelectedCustomerRoleIds { get; set; }

        public IList<XMSelectListItem> AvailableCustomerRoles { get; set; }

        [DisplayName("注册店铺")]
        public IList<int> SelectedStoreIds { get; set; }

        public IList<StoreSelectModel> AvailableStores { get; set; }

        [DisplayName("注册邮箱")]
        public string SearchEmail { get; set; }

        [DisplayName("登录账号")]
        public string SearchLoginname { get; set; }

        [DisplayName("注册时间")]
        [NoTrim]
        public string SearchCreateDayStart { get; set; }

        [NoTrim]
        public string SearchCreateDayEnd { get; set; }

        [DisplayName("手机号码")]
        public string SearchMobile { get; set; }

        #endregion

    }
}
